"""
# -*- coding: utf-8 -*-
# @Time    : 2023/5/23 10:24
# @Author  : 王摇摆
# @FileName: Train.py
# @Software: PyCharm
# @Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
"""
from RandonmForest_Boosting.Classification.Multi_Class_Classification.Data import X, y

'''
修改这里选用人工或者第三方库的随机森林boosting算法的实现
'''
from RandonmForest_Boosting.Classification.Multi_Class_Classification.Model_Manual import adaboostmc
# from RandonmForest_Boosting.Classification.Multi_Class_Classification.Model_Import import AdaBoostClassifier as adaboostmc

# 初始化自适应增强分类器
adamc = adaboostmc(n_estimators=50)
print('随机森林SAMME多元分类器已构造实例！')
# 拟合训练集
adamc.fit(X, y)
print('随机森林SAMME多元分类器已训练完毕！')
